-
The
MGLLocationManagerprotocol defines a set of methods that a class must implement in order to serve as the location manager of anMGLMapView. A location manager is responsible for notifying the map view about location-related events, such as a change in the user’s location. This protocol is similar to the Core Location framework’sCLLocationManagerclass, but your implementation does not need to be based onCLLocationManager.To receive location updates from an object that conforms to the
See moreMGLLocationManagerprotocol, use the optional methods available in theMGLLocationManagerDelegateprotocol.Declaration
Objective-C
@protocol MGLLocationManager <NSObject>Swift
protocol MGLLocationManager : NSObjectProtocol -
The
See moreMGLLocationManagerDelegateprotocol defines a set of methods that respond to location updates from anMGLLocationManagerobject that is serving as the location manager of anMGLMapView.Declaration
Objective-C
@protocol MGLLocationManagerDelegate <NSObject>Swift
protocol MGLLocationManagerDelegate : NSObjectProtocol
Install in Dash
Location Updates Reference